
--类开的使用

local Point = class("Point")

function Point:onStart( ... )
    self:test2()
end


function Point:test( ... )
    local test = new("test")
    local test2 = new("test2")
    test2:print()
    local Test = require("test")
    local Test2 = require("test2")
    print(test2:is("test"), test:is("test2"))

    local tb = {}
    test.__tostring = nil
    print(tb, test:getObjAddr(), test2:getObjAddr())
    print( test.obj_id, test2:getObjId())

    local uuid = require("utils.uuid")

    -- print(uuid.v41())
    -- print(uuid.v42())

    local hash = require("utils.hash")
    print(hash.string("test22222223"))


    local log = new("logger")
    log:debug("logger test")

    local dispatch = new("dispatch")
    dispatch:dispatch()
end

function Point:test2( ... )
    local test = new("object")
    test:print()
    test = nil
    print("tb___",test)
    -- g.hotfix:printList()
end


return Point

-- local point = Point()

-- point:print()
-- print("---", point:is(Object))

-- point:test2()